import {  getRequest, postRequest } from '@/lib/smart-request';

export const PayApi = {
    CreateOrder:(param)=> {
        return postRequest('/trade/front/order/create/member',param)
    },
	Pay:(param)=> {
	    return postRequest('/trade/front/payment/create',param)
	},
	functionCard:(param)=> {
	    return postRequest('/trade/front/order/create/function/card',param)
	},
	DabiPackage:(param)=> {
	    return postRequest('/trade/front/order/create/coin',param)
	},
	getCoupon:(param)=>{
		return getRequest('/user/front/coupon/available',param)
	},
	CreateAvatarFramsOrder:(param)=> {
	    return postRequest('/trade/front/order/create/dressed',param)
	},
	getBill:(param)=>{
		return getRequest('/user/front/users/assets/history/page',param)
	},
	CreateWithdrawal:(param)=> {
	    return postRequest('/user/front/withdrawal/create',param)
	},
	getWithdrawal:(param)=>{
		return getRequest('/user/front/withdrawal/page',param)
	},
	BuyGifts:(param)=>{
		return postRequest('/trade/front/order/create/gift',param)
	}
}